package org.luxor.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.luxor.commons.core.utils.BeanUtils;
import org.luxor.system.entity.SysUserManageEntity;
import org.luxor.system.mapper.SysUserManageMapper;
import org.luxor.system.service.ISysUserManageService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 用户数据权限管理表
 *
 * @author Mark @date 2020-07-26 16:52:22
 */
@Service("sysUserManageService")
public class SysUserManageServiceImpl extends ServiceImpl<SysUserManageMapper, SysUserManageEntity> implements ISysUserManageService {

    @Override
    public IPage<SysUserManageEntity> page(IPage<SysUserManageEntity> page, Map query) {
        SysUserManageEntity queryEntity = BeanUtils.toObject(SysUserManageEntity.class, query);
        return super.page(page, Wrappers.query(queryEntity));
    }

}
